package com.zwy.springinner.anotation;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * @author mrzhaowy
 */
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RequestJson {
    @AliasFor("name")
    String value() default "";

    @AliasFor("value")
    String name() default "";

    boolean required() default false;

    String defaultValue() default "";
}
